<template>
  <div class="footer">
    <router-link to="/bookrack" tag="div" class="item">
      <span><i class="iconfont icon-shujia"></i></span>
      <span class="icon_text">书架</span>
    </router-link>
    <router-link to="/bookmall" tag="div" class="item">
      <span><i class="iconfont icon-shucheng"></i></span>
      <span class="icon_text">书城</span>
    </router-link>
    <router-link to="/my" tag="div" class="item">
      <span><i class="iconfont icon-wode"></i></span>
      <span class="icon_text">我的</span>
    </router-link>
  </div>
</template>

<script>
export default {
  data() {
    return {
      type: 1,
    };
  },
  methods: {},
};
</script>

<style lang="less">
.footer {
  max-width: 750px;
  min-width: 320px;
  margin: 0 auto;
  height: 50px;
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  display: flex;
  justify-content: space-evenly;
  border-top: 1px solid #e2e2e2;
  background-color: #fefefe;
  z-index: 1;
  .item {
    flex: 0 0 33.3333%;
    height: 50px;
    text-align: center;
    display: flex;
    flex-direction: column;
    justify-content: center;
    color: #a2a2a2;
    .iconfont {
      font-size: 25px;
    }
    .icon_text {
      font-size: 12px;
      transform: scale(10/12);
    }
  }
  .router-link-active.item {
    color: #52b594;
  }
}
</style>